#include <iostream>
using namespace std;
int main()
{
int x;
x=2;
while(92*x-98!=87*x-78)
x++;
cout <<x<<endl;
return 0;	
}
